//Accepted
//http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1051
#include <vector>
#include <set>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <map>
#include <iostream>
#include <list>
#include <deque>
#include <cstdio>
#include <cstring>
#include <cstdlib>
using namespace std;

long long n;
int x;
double y;
int main (){
	//freopen("in.txt", "r", stdin);//freopen("out.txt", "w", stdout);
	cin>>n;
	while(n){
		y=sqrt(n);
		x=(int)y;
		if(x==y)printf("yes\n");
		else printf("no\n");
		cin>>n;
	}
	return 0;
}
